﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace Pevolution.GameObjects
{
    public class Food
    {
        private Vector2 position;
        private Texture2D tex;

        public int[,] memory = new int[8, 8];

        public int energy;

        public bool dead = false;

        public Food(Vector2 position, Texture2D tex)
        {
            this.position = position;
            this.tex = tex;
            energy = 5;
        }

        public void Update()
        {
            if (!dead) { }
        }

        public Vector2 getPosition()
        {
            return position;
        }

        public void SetPossition(float x, float y)
        {
            position = new Vector2(x, y);
        }

        public void Render(SpriteBatch sb, float rotation, float scale, Color c)
        {
            if(!dead)
                sb.Draw(tex, position, null, c, rotation, Vector2.Zero, scale, SpriteEffects.None, 0); 
        }
    }
}
